import {api} from './api';
import http from '../utils/http'; // 导入http中创建的axios实例
import qs from 'qs'; // post请求序列化
const enterprise = {
  // 获取招聘信息列表
  getRecruitmentlist(params,ID) {
    return http.get(api.getRecruitmentlist+'/'+ID,{params:params});
  },
  //企业获取就业人员列表
  getRecruiterlist (params,ID){
	return http.get(api.getRecruiterlist+'/'+ID,{params:params});
  },
  //获取招聘信息个人信息
  getRecruitmentUserInfo(ID){
	  return http.get(api.getRecruitmentUserInfo+'/'+ID);
  },
  //企业获取就业人员个人详情
  getRecruiterInfo(ID){
	  return http.get(api.getRecruiterInfo+'/'+ID);
  },
  //企业处理简历申请
  processResume(params,ID){
	  return http.post(api.processResume+'/'+ID,qs.stringify(params))
  },
  //企业获取就业人员应聘记录
  getRecruiterApplicationRecord(ID){
	  return http.get(api.getRecruiterApplicationRecord+'/'+ID)
  }
};
export default enterprise;